<div class="sendTitleDiv marginleft10">
    友链管理
</div>
<div class="margintop20 floatRightDiv marginright80">
    <form action="__URL__/friendlyLinkAddPage.shtml"  method="post">
        <div class="floatLeftDiv marginleft50">
            <input type="submit" value="添加" class="buttonStyle" />
        </div>
    </form>
</div>
<div class="tableInfoDiv margintop10">
    <table id="table_agents_manager">
        <tr>
            <td>
                名称
            </td>
            <td>
                频道
            </td>
            <td>
                功能
            </td>
        </tr>
        <volist name="links" id="link">
            <tr>
                <td>
                    <a class="preview">{$link.name }</a>
                </td>
                <td>
                    {$link.module }
                </td>
                <td>
                    <a href="__URL__/friendlyLinkAddPage/id/{$link.id }.shtml">修改</a>/
                    <a href="#" link_id="{$link.id }" class="c_ad_delete">删除</a>
                </td>
            </tr>
        </volist>
    </table>
</div>
<div id="div_news_page_list" class="pagelist">
    <div class="floatright">
        {$show }
    </div>
</div>
<form id="frm_friendly_link" method="post"></form>
<script>
    $(function(){
        $("#table_agents_manager a.c_ad_delete").click(function(){
            if(confirm('是否确定删除')){
                $form = $("#frm_friendly_link");

                $form.attr('action', '__URL__/delete/id/' + $(this).attr('link_id') + '.shtml');
                $form.submit();
            }
        });
    });
</script>